﻿@model FMIS.Models.Player

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Player</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.PersonId, "Person")
        </div>
        <div class="editor-field">
            @Html.DropDownList("PersonId", String.Empty)
            @Html.ValidationMessageFor(model => model.PersonId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ClubId, "Club")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ClubId", String.Empty)
            @Html.ValidationMessageFor(model => model.ClubId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerFirstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayerFirstName)
            @Html.ValidationMessageFor(model => model.PlayerFirstName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerLastName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayerLastName)
            @Html.ValidationMessageFor(model => model.PlayerLastName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerFullName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayerFullName)
            @Html.ValidationMessageFor(model => model.PlayerFullName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Address)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RegisteredIn)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegisteredIn)
            @Html.ValidationMessageFor(model => model.RegisteredIn)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Status)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Status)
            @Html.ValidationMessageFor(model => model.Status)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.JerseySize)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.JerseySize)
            @Html.ValidationMessageFor(model => model.JerseySize)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ShoeSize)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ShoeSize)
            @Html.ValidationMessageFor(model => model.ShoeSize)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.JerseyNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.JerseyNumber)
            @Html.ValidationMessageFor(model => model.JerseyNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NationalJerseyNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NationalJerseyNo)
            @Html.ValidationMessageFor(model => model.NationalJerseyNo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FavoritePosition)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FavoritePosition)
            @Html.ValidationMessageFor(model => model.FavoritePosition)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Leg)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Leg)
            @Html.ValidationMessageFor(model => model.Leg)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AgentId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AgentId)
            @Html.ValidationMessageFor(model => model.AgentId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Comment)
            @Html.ValidationMessageFor(model => model.Comment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Injuries)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Injuries)
            @Html.ValidationMessageFor(model => model.Injuries)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PublicComment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PublicComment)
            @Html.ValidationMessageFor(model => model.PublicComment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayerCode)
            @Html.ValidationMessageFor(model => model.PlayerCode)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
